package com.by.mapper;

import com.by.bean.Forwarder;
import com.by.common.crud.BaseMapper;
import com.by.query.ForwarderQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Mapper
public interface ForwarderMapper extends BaseMapper<Forwarder> {
    /**
     * 查询货代列表
     * @param query
     * @return
     */
    List<Map> query(ForwarderQuery query);


    // 定义查询货代信息及其账号密码的方法
    Forwarder getForwarderWithAccountAndPassword(@Param("id") Serializable id);
}
